package com.soft.line.controller;

import com.soft.line.service.LasUserInfoService;
import com.soft.line.util.exception.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Api(description = "用户相关接口")
@RestController
@RequestMapping("/systemAdmin")
public class LasUserInfoController {

    @Autowired
    public LasUserInfoService lasUserInfoService;

    /**
     * 获取符合添加用户合同部门关系的用户
     * @return
     */
    @ApiOperation(value = "获取符合添加用户合同部门关系的用户", notes = "获取符合添加用户合同部门关系的用户")
    @PostMapping("/selectUserInfoForConDep")
    public CommonResult selectUserInfoForConDep(@RequestBody Map<String,Object> map){
        return CommonResult.success(lasUserInfoService.selectUserInfoForConDep());
    }
}
